<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <meta name="description" content="" />
  <meta name="author" content="" />
  <link rel="icon" href="./img/asset-favicon.ico" />
  <title>社交-问答</title>
  <!-- 页面 css js -->
  <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css" />
  <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css" />
  <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css" />
  <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css" />
  <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css" />
  <link rel="stylesheet" type="text/css" href="./css/widget-base.css" />
  <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css" />
  <link rel="stylesheet" type="text/css" href="./css/page-sj-qa-login.css" />
  <link rel="stylesheet" type="text/css" href="./css/page-sj-qa-logined.css" />
  <link rel="stylesheet" href="./css/element.css">
</head>

<body>
  <div class="wrapper">
    <header>
    </header>
  </div>

  <!--两列布局-->
  <div id="app">
    <div class="tab-nav ">
      <div class="wrapper">
        <ul class="fl sui-nav nav-tabs navbar-dark">
          <li :class="tabIndex == -1 ? 'active':''" @click='tabChange(-1)'>
            <a href="javascript:;" data-toggle="tab">首页</a>
          </li>
          <li v-for="(item,index) in titleTagList" @click='tabChange(index)' :class="tabIndex == index ? 'active':''">
            <a href="javascript:;" data-toggle="tab">{{item.label_name}}</a>
          </li>
        </ul>
        <span class="fr more">
          <a href="./qa-allTag.html" target="_blank">更多</a>
        </span>
        <div class="clearfix"></div>
      </div>
    </div>
    <div class="wrapper  qa-content">
      <div class="fl  left-list">
        <div class="tab-content">
          <div id="index" class="tab-pane active">
            <div class="tab-bottom-line">
              <ul class="sui-nav nav-tabs">
                <li :class="problemType == 1 ? 'active' : ''" @click='problemTypeChange(1)'>
                  <a href="javascript:;" data-toggle="tab">最新回答</a>
                </li>
                <li :class="problemType == 2 ? 'active' : ''" @click='problemTypeChange(2)'>
                  <a href="javascript:;" data-toggle="tab">热门回答</a>
                </li>
                <li :class="problemType == 3 ? 'active' : ''" @click='problemTypeChange(3)'>
                  <a href="javascript:;" data-toggle="tab">等待回答</a>
                </li>
              </ul>
              <div class="qa-list">
                <div class="tab-content">
                  <div id="new" class="tab-pane active">
                    <ul class="detail-list">
                      <li class="qa-item" v-for="(item, index) in problemList">
                        <div class="fl record">
                          <div class="number">
                            <div class="border useful">
                              <p class="usenum">{{item.useful_count}}</p>
                              <p>有用</p>
                            </div>
                            <div class="border answer">
                              <p class="ansnum">{{item.reply}}</p>
                              <p>回答</p>
                            </div>
                          </div>
                        </div>
                        <div class="fl info">
                          <div class="question">
                            <p class="author" v-if="item.replyname">
                              <span class="name">{{item.replyname}}</span>
                              {{calculatDurationDisplay(item.replytime)}}前回答</p>
                            <p class="author" v-else>
                              <span class="name">还无人回答此问题</p>
                            <p class="title">
                              <a :href="'./qa-detail.html?id='+item.id" target="_blank">{{item.title}}</a>
                            </p>
                          </div>
                          <div class="other">
                            <ul class="fl sui-tag">
                              <li v-for='tagItem in item.labels'>
                                <a :href="'./qa-tagDetail.html?id='+item.id" target="_blank">{{tagItem}}</a>
                              </li>
                            </ul>
                            <div class="fr brower">
                              <p>浏览量 {{item.visits?item.visits:0}} | {{formatTime2(item.createtime)}} 来自
                                <a href="#">{{item.user}} </a>
                              </p>
                            </div>
                          </div>
                        </div>
                        <div class="clearfix"></div>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="fl  right-tag" v-if='showLogin'>
        <div class="qa-login" v-if='showLogin'>
          <p>猿圈儿问答社区 帮助他人手留余香</p>
          <form action="" class="sui-form">
            <div class="control-group">
              <label for="inputaccount" class="control-label">手机号或Email</label>
              <div class="controls">
                <input type="text" placeholder="11位手机号 或 Email" v-model='log_username' />
              </div>
            </div>
            <div class="control-group">
              <label for="inputaccount" class="control-label">
                <span class="fl">密码</span>
                <!-- <span class="fr">忘记密码</span> -->
              </label>
              <div class="controls">
                <input type="password" placeholder="不少于6位" v-model='log_password' />
              </div>
            </div>
            <div class="control-group">
              <label for="" class="fl radio-circle checked">
                <input type="checkbox" checked="checked" name="radio1" v-model="log_remember" />
                <span>记住登录状态</span>
              </label>
              <div class="fr controls">
                <a class="sui-btn btn-login" href="javascript:;" target="_blank" @click="login">登录</a>
              </div>
              <div class="clearfix"></div>
            </div>
          </form>
          <p>还没账号？立即
            <a href="./person-loginsign.html" target="_blank">注册</a>
          </p>
        </div>
      </div>
      <div class="fl  right-tag" v-else>
        <div class="block-btn">
          <p>今天，有什么问题要和大家分享么?</p>
          <a class="sui-btn btn-block btn-share" href="./qa-submit.html" target="_blank">发布问题</a>
        </div>
        <div class="hot-tags">
          <div class="head">
            <h3 class="title">热门标签</h3>
          </div>
          <div class="tags">
            <ul class="sui-tag">
              <li v-for="(item,index) in hotTagList">
                <a :href="'./qa-tagDetail.html?id='+item.id" target="_blank">{{item.label_name}}</a>
              </li>
            </ul>

          </div>
        </div>
      </div>
      <div class="clearfix"></div>
    </div>
  </div>
  <div class="footer">
    <div class="wrapper">
      <div class="footer-bottom">
        <div class="link">
          <dl>
            <dt>
              网站相关
            </dt>
            <dd>
              关于我们
            </dd>
            <dd>
              服务条款
            </dd>
            <dd>
              帮助中心
            </dd>
            <dd>
              编辑器语法
            </dd>
          </dl>
          <dl>
            <dt>
              常用链接
            </dt>
            <dd>
              传智播客
            </dd>
            <dd>
              传智论坛
            </dd>
          </dl>
          <dl>
            <dt>
              联系我们
            </dt>
            <dd>
              联系我们
            </dd>
            <dd>
              加入我们
            </dd>
            <dd>
              建议反馈
            </dd>
          </dl>
          <dl>
            <dt>
              关注我们
            </dt>
            <dd>
              微博
            </dd>
            <dd>
              twitter
            </dd>
          </dl>
          <div class="xuke">
            <h3>内容许可</h3>
            <p>除特别说明外，用户内容均采用知识共享署名-非商业性使用-禁止演绎4.0 国际许可协议 (CC BY-NC-ND 4.0) 进行许可</p>
            <p>本站由 传智研究院 提供更新服务</p>
          </div>
        </div>
        <p class="Copyright">Copyright &copy; 2017 传智问答社区 当前版本 0.0.1</p>
      </div>
    </div>
  </div>
</body>

</html>
<script src="js/host.js"></script>
<script src="js/vue.min.js"></script>
<script src="js/element.js"></script>
<script src="js/axios.min.js"></script>
<script src="js/qa_index.js"></script>